<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        var a=10;
        var b="kobe\"gg";
        alert(a);
        alert(b);

        var c=10+'a'; //10a  string
        var d=true+5; /*true相当于1 false相当于0*/  //6 number
        var e=true+'a'; //truea string
        var f=true+true; //2 number
        
        console.log(c+"|"+typeof(c));
        console.log(d+"|"+typeof(d));
        console.log(e+"|"+typeof(e));
        console.log(f+"|"+typeof(f));

        var x=6.32;
        console.log(parseInt(x)+"|"+typeof(parseInt(x))); //6 number
        var y="是";
        console.log(parseInt(y)+"|"+typeof(parseInt(y))); //NaN 不是数字
        var z=6.32;
        console.log(parseFloat(z)+"|"+typeof(parseInt(z))); //6.32 number
        
        var s="10";
        var q=10;
        var p1=s==q; //判断值
        var p2=s===q; //严格判断
        console.log(p1); //true
        console.log(p2); //false 数值一样但类型不同
    </script>

</body>
</html>